package com.example.houtai.controller;

import com.example.houtai.service.EsService;
import com.org.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 郝政博
 * ES全量同步
 */
@RestController
@RequestMapping("/sys/es")
public class EsController {

    @Autowired
    private EsService esService;

    @RequestMapping("save")
    public ResultEntity save(){
        //es全量同步
        return esService.save();
    }
}
